import {Account} from './Account';

import separate from '../patternSeparator';

separate('状态模式');

let account = new Account('ZJX', 1000);
account.withdraw(1500);
account.withdraw(1600);
account.withdraw(100);
console.log(`当前利息：${account.calcInterest()}`);

account.deposit(1200);
account.deposit(3200);
console.log(`目前利息：${account.calcInterest()}`);